<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中国刊网</title>

<link href="css/index.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="js/paihangbang.js"></script>
<%--<script type="text/javascript" language="javascript">
	//收藏本站
	function AddFavorite(sURL, sTitle) {

		sURL = encodeURI("http://www.baidu.com");
		try {
			window.external.addFavorite(sURL, sTitle);
		} catch (e) {
			try {
				window.sidebar.addPanel(sTitle, sURL, "");
			} catch (e) {
				alert("加入收藏失败，请使用Ctrl+D进行添加,或手动在浏览器里进行设置.");
			}
		}
	}

	//设为首页
	function SetHome(url) {

		if (document.all) {
			document.body.style.behavior = 'url(#default#homepage)';
			document.body.setHomePage("http://www.baidu.com");
		} else {
			alert("您好,您的浏览器不支持自动设置页面为首页功能,请您手动在浏览器里设置该页面为首页!");
		}
	}
	
	function search_1() {
		document.searchform.submit();
	}
</script>
--%></head>
<div class="fla">
      <div class="flag">
          <div class="flag_1">欢迎进入中国刊网</div>
          <div class="flag_2">
          	<c:if test="${sessionScope.user_session != null}">
          		<span>${sessionScope.user_session }</span>&nbsp;&nbsp;
          		<a href="front/spaceMenu">个人中心</a>
          		<a href="user/user_exit">退出</a>
          	</c:if>
          	<c:if test="${sessionScope.user_session == null}">
	            <a href="html/userLogin.jsp" >登录</a>
	            <a href="html/userRegister.jsp" >注册</a>
            </c:if>
            |
            <a onclick="SetHome(window.location)" href="javascript:void(0)">设为首页</a>
            <a onclick="AddFavorite(window.location,document.title)" href="javascript:void(0)">加入收藏</a>
         </div>
     </div>       
	</div>

<div class="top">
	<div class="top-left">
		<a href="index.jsp"><img src="images/Logo1.gif" alt="中国刊网">
		</a>
	</div>
	<div class="top-right">
		<div class="top_right1">
			<ul>
				<li class="top-a1" style="margin-left:12px"><a href="front/createJournal">创建刊物</a></li>
				<li class="top-a1"><a href="front/apply_bw">加入编委</a></li>
				<li class="top-a2"><a href="front/submit_article">投稿</a></li>
				<li class="top-a2"><a href="subscribeB/findAllJudge">订阅</a></li>
			</ul>
		</div>
		<div class="input1">
			<form action="periodical/periodicalSearch" method="post" name="searchform" id="searchform">
				<input type="text" name="keywords" class="input1-a" value="" onfocus="this.value=''" />
				<span class="top-a3"><a href="javascript:search()">搜索</a></span>
			</form>
		</div>
	</div>
</div>